package com.lu.lib

import org.junit.Test

/**
 * Example local unit test, which will execute on the development machine (host).
 *
 * See [testing documentation](http://d.android.com/tools/testing).
 */
class ExampleUnitTest {
    @Test
    fun addition_isCorrect() {
        val banana = Banana()
        banana.say()
    }
}


interface Fruit {
    fun color(): Int
}

interface AA {
    fun say()
}

abstract class Apple : AA, Fruit {
    private val TAG = this.javaClass.simpleName
    override fun say() {
        println("TAG=$TAG")
    }

    override fun toString(): String {
        return "this is apple"
    }
}

class Banana : Apple() {
    override fun toString(): String {
        return "this is Banana impl Fruit by Apple"
    }

    override fun color(): Int {
        return -1
    }
}

